package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.query.QueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);


    List<Role> list(QueryObject qo);

    List<Role> selectRoleByEmployeeId(Long id);
}